
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include <rviz_common/properties/bool_property.hpp>
#include <rviz_common/validate_floats.hpp>
#include <rviz_common/display_context.hpp>

#include <rviz_default_plugins/displays/interactive_markers/interactive_marker_namespace_property.hpp>

#include "rviz_custom_plugins/displays/custom_interactive_marker_display.h"


namespace rviz_custom_plugins
{
namespace displays
{

CustomInteractiveMarkerDisplay::CustomInteractiveMarkerDisplay()
{
    for (int index = 0 ; index < numChildren(); index++ ) {
        Property* childPro = childAtUnchecked(index);
        if (childPro->getName() == "Show Descriptions") {

        } else if (childPro->getName() == "Show Axes") {

        } else if (childPro->getName() == "Interactive Markers Namespace") {
            childPro->setName("NameSpace");
            childPro->hide();
        } else {
            childPro->hide();
        }
    }
}

void CustomInteractiveMarkerDisplay::setStatus(rviz_common::properties::StatusProperty::Level level, const QString & name, const QString & text)
{
    // do nothing
}

}  // namespace displays
}  // namespace rviz_custom_plugins

#include <pluginlib/class_list_macros.hpp>  // NOLINT(build/include_order)
PLUGINLIB_EXPORT_CLASS(rviz_custom_plugins::displays::CustomInteractiveMarkerDisplay, rviz_common::Display)
